
{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/head",KUO,THIS) }}
<div class="kuodatype">
    <div class="layui-container kuodatypetop">
        <div class="kuodatypelist">
        
            <ul class="cate-list clearfix" id="sosojilu">

            </ul>
        </div>
    </div>
</div>


{{#
    let $SOKEY = KUO.$SOKEY;
    var  $游戏数据 = false;
    var $TOTAL =  0;
    let $MEYE = 18;
    if($SOKEY != ""){

    
        let $WWH = {'off':2 ,' (' :'and' ,'name LIKE':'%'+$SOKEY+'%'  ,'keywords OLK':'%'+$SOKEY+'%',')':''};
                        
        
        $游戏数据 = await  THIS.CENTER_select($WWH,"atime desc",($MEYE+','+KUO.PAGE)  );
        let $DB = await db('cms_content');
        $TOTAL =  await $DB.Where($WWH).Total();
    }else{
       
       
    }

}}
<div class="kuolist">
    <div class="layui-container ">
        <div class="kuolistnav">
            <a href="{{WZHOST}}">首页</a> > 
           
            <span>搜索:{{$SOKEY}} {{KUO.PAGE >1?'第'+KUO.PAGE+'页':''}}</span>
            <p class="layui-right youbian">共<span class="tishi">{{ $TOTAL }}</span> 条筛选结果</p>
        </div>
        <div class="layui-row layui-col-space15">
            {{#
          
            if( $游戏数据 ){
                for(let $ii in $游戏数据 ){
                    let $eli = $游戏数据 [$ii ];
                    let $eliurl = KuoLink([ KUO.CLASS, $eli['url'] ]);
                    
            }}

            <div class="layui-col-md2 layui-col-xs6 kuolistbody">
                <div class="tupian">
                    <a href="{{$eliurl}}"><img src="{{CDNHOST}}Tpl/cms/manhua/image/loadimg.png" lay-src="{{pichttp($eli.photo)}}" class="image"></img>
                        {{# if($eli.remarks && $eli.remarks != ""){ }}
                        <span class="jiaobiao"> {{$eli.remarks}}</span>
                        {{# } }}
                    </a>
                </div>
                <div class="biaoti">
                   
                    <a href="{{$eliurl}}">{{$eli.name}}</a>
                </div>
                <div class="gengxin">
                    更至：<span class="zuixin">{{$eli.char1}}</span>
                </div>
                <div class="renqi">
                    人气：{{$eli.popularity}}
                </div>
                
            </div>
                {{#
                }   }else{  }}
                    <div class="Nodata">
                        没有相关数据
                    </div>
                {{# } }}
          
        </div>

        {{#

            if($TOTAL > $MEYE){
        }}  <div class="center">
                    <div class="pageddd">{{ Mode("Tools").Fenye( $MEYE , $TOTAL  , 5 , KUO.PAGE ,KuoLink([ KUO.CLASS, KUO.$DATA['url'],$SOKEY ],2) , WebExt ) }} 
                    <div  style="clear:both;"></div>
                    </div>
                </div>
        {{# } }}

      
        <div class="layui-clear"></div>
    </div>
</div>

{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/foot",KUO,THIS) }}
<script>
var height = 0;
var SOKEY = '{{$SOKEY}}';
$(function(){

  layui.flow.lazyimg(); 
  var value = localStorage.getItem("SOSO");
  if (!value || value == "") {
      value = '[]';
  }
  value = JSON.parse(value);
  if(value){
      var html = `<li class="cate-item">搜索记录:</li>`;
      if(value.length < 1){
        html = `<li class="cate-item"> 没有搜索记录</li>`;
      }
      for(var x in value){
        html +=`
        <li class="cate-item `+(SOKEY==value[x]?'active':'')+`">
        <a href="{{KuoLink([KUO.CLASS,'soso'],2)}}`+value[x]+`{{WebExt}}">`+value[x]+`</a>
        </li>`;
      }
      $("#sosojilu").html(html);

  }

  
});
</script>